

typedef int nodeval;

typedef struct Node
{
	struct Node *pNext;
	nodeval  element;

}Item;


struct Stack
{
	
	unsigned STACK_SIZE;
	unsigned CAPCITY;
	Item *item;

};

typedef  struct Stack Stack;




void StackInit(Stack *pStack);
/**
 * push the item to stack
 */
void  StackPush(Item *item,Stack *pStack);



/**
 * pop the top element 
 */
Item *StackPop(Stack *pStack);


/**
 * cal the result for  stack
 * */
nodeval StackCalculate(Stack *pstack,Stack *optStack);
